; Logo MSX2 (original)
;
; Adaptado para ser montado pelo SJASMPLUS. Unificado codigo do MSX2 e MSX2+
; Usado constantes para os numeros de portas de I/O
; por Fabio Belavenuto e Leonard Oliveira @ 2014
;

MSXVER		= 2			; MSX version (MSX2+)

	OUTPUT	"out\optrom2p.rom"

	include	"config.inc"
	include	"sysvars.inc"
	include	"sub_export.inc"

	ORG		$4000

 IF OPT_WITH_FM = 0
	.ds		OPTENT-$, $FF
 ELSE
	.incbin "fm_part1.bin"
	.ds		OPTENT-$, $FF
 ENDIF
	include "optrom.inc"

; ==============================
; Sprite attribute
tab_spriteAttr:					; Y,X,pattern,0
    .db  1Ch, 0E8h, 0, 0        ; right mask position, X=0E8h by default        <---------------------
    .db  1Ch, 0E8h, 0, 0        ; right mask position                           <---------------------
    .db  3Ch, 0E8h, 0, 0        ; right mask position                           <---------------------
    .db  3Ch, 0E8h, 0, 0        ; right mask position                           <---------------------
    .db  5Ch, 0E8h, 0, 0        ; right mask position                           <---------------------
    .db  5Ch, 0E8h, 0, 0        ; right mask position                           <---------------------
    .db  1Ch,    0, 4, 0        ; left mask position, X=0 by default
    .db  3Ch,    0, 4, 0        ; left mask position
    .db  5Ch,    0, 4, 0        ; left mask position
    .db 0D8h                    ; .db 0D8h,    0, 0, 0 by default

	include	LOGO_FILE

 IF OPT_WITH_FM = 0
	.ds		$8000-$, $FF
 ELSE
	.ds		$7FED-$, $FF
	.incbin "fm_part2.bin"
 ENDIF
